package edu.zju.gis.dbfg.server.mapper;

import edu.zju.gis.dbfg.common.base.BaseMapper;
import edu.zju.gis.dbfg.server.interceptor.UserAuth;
import edu.zju.gis.dbfg.server.model.MapService;

import java.util.List;

/**
 * @author Chenyr
 * @date 2019/9/11
 **/
public interface MapServiceMapper extends BaseMapper<MapService, String> {
    //select
    @UserAuth
    List<MapService> selectByRole(String userId);

    List<MapService> selectByUser(String userId);

    @UserAuth
    List<MapService> searchServicesByRole(String userId, String str);

    List<MapService> searchServicesByUser(String userId, String str);

    int delete(String id);
}
